package com.lvmama.pangolin.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.lvmama.pangolin.entity.Festival_Model;
import com.lvmama.pangolin.mybatis.mapper.FestivalMapper;
import com.lvmama.pangolin.service.FestivalService;
@Transactional
@Service
public class FestivalServiceImpl implements FestivalService{
	/**  
	* @Title：TCTaskHistoryServiceImpl.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年2月20日下午6:13:38  
	*/
	@Autowired
	private FestivalMapper festivalMapper;
	public int insertFestival(List<Festival_Model> festival)throws Exception{
		int count = festivalMapper.insertFestival(festival);
		return count;
	};
	public List<Festival_Model> getAllFestival(Map<String,Object> map)throws Exception{
		return festivalMapper.getAllFestival(map);
	};
}
